package com.zbowen.seata.consumer.web;

import com.zbowen.seata.consumer.api.TaxTypeCodeProviderApi;
import com.zbowen.seata.consumer.api.dto.TaxTypeCodeDto;
import com.zbowen.seata.consumer.entity.TaxTypeCode;
import com.zbowen.seata.consumer.service.TaxTypeCodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class TestController implements TaxTypeCodeProviderApi {

    @Autowired
    private TaxTypeCodeService taxTypeCodeService;

    @Override
    public List<String> updateTaxTypeCode(TaxTypeCodeDto dto) {
        taxTypeCodeService.test(new TaxTypeCode());
        return List.of("张三", "李四");
    }

}
